import 'package:flutter/material.dart';

class RoutPage extends StatelessWidget {
  const RoutPage({super.key, this.title='111'});
   final String? title ;
  @override
  Widget build(BuildContext context) {
    List<Tab> tabs = const[
      Tab(
        text: '全部',
      ),
      Tab(
        text: "未完成",
      ),
      Tab(
        text: "已完成",
      ),
    ];


    int  current_step = 0;
    List<Step> my_steps =[
      Step(title: Text('STEP 1'), content: Text('SOME CONTENT 1'),
        isActive: true,
      ),
      Step(title: Text('STEP 2'), content: Text('SOME CONTENT 2'),
        isActive: true,
      ),
    ];


    AlertDialog dialog =new AlertDialog(
      content: Text('Dialog is uo..',style: TextStyle(fontSize: 30),),
    );
    return Scaffold(
      appBar: AppBar(
        title: Text(title!),
      ),
      body: Container(
        child: Column(
          children: [
            Center(
              child:  ElevatedButton(
                onPressed: ()=>showDialog(context: context,
                  builder: (BuildContext context)  => Container(child:dialog ,),),
                style: ElevatedButton.styleFrom(
                  backgroundColor: Colors.red,),
                child: Text('Clike me'),
              ),
            ),

            Container(
              child:  Stepper(
                  steps:my_steps,
                  currentStep: current_step,
                 type: StepperType.vertical,
              ),
            ),
          ],
        )
      ),
    );
  }
}



